﻿using System;
using System.Collections.Generic;
using Color = System.Drawing.Color;
using SwinGame;

namespace Gundam_2._0_Alpha.src
{
    public class SpriteUtils
    {
        private void ZeroFrameData(Sprite s)
        {
            for (int i = 0; i < s.Rows * s.Columns; i++)
                s.FramesPerCell[i] = 0;            
        }

        public void ActivateAnimationRow(Sprite s, int row, int colEnd, int count)
        {
            int rowStart = s.Columns * row;
            ZeroFrameData(s);

            for (int c = 0; c < colEnd; c++)
                s.FramesPerCell[c + rowStart] = count;

            s.CurrentCell = rowStart;
        }
    }
}
